package com.zhuang.chapter09.work01;

import java.util.Scanner;

public class ScannerErrors {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		try {
			int m = Integer.parseInt(sc.next());
			System.out.println(10 - m);
		} catch (NumberFormatException e) {
			System.out.println("not int");
		} finally {
			System.out.println("end");
		}
		sc.close();
	}

}
